home *** CD-ROM | disk | FTP | other *** search
- The wglUseFontOutlines function is new to Windows NT 3.51 and can be used
- to draw 3-dimensional characters of TrueType fonts. These characters can
- be rotated, scaled, transformed, and viewed just like any other OpenGL
- 3D image. This function is designed to work with TrueType fonts.
-
- This sample shows how to use the wglUseFontOutlines function to
- create display lists for characters in a TrueType font and how to draw,
- scale, and rotate the glyphs in the font by using glCallLists to draw
- the characters and other OpenGL functions to rotate and scale them. You
- will need the Win32 SDK for Windows NT 3.51 to compile this sample and to
- incorporate wglUseFontOutlines in your own applications. You will need
- Windows NT 3.51 to execute it.
-
- To specify which TrueType font you want wglUseFontOutlines to create
- display lists for, you must first create the desired logical font with
- CreateFont or CreateFontIndirect. Then, you must select the HFONT created
- into a screen device context (HDC) with SelectObject and send the HDC to
- the wglUseFontOutlines function. Each character is mapped in the "x" and
- "y" directions in the display lists and you specify the depth in the
- negative "z" direction in the "extrusion" parameter of wglUseFontOutlines.
-
- You can also specify whether you want the 3D glyphs to be created with
- line segments or polygons. To instruct wglUseFontOutlines to create the
- 3D glyphs with lines segments, specify WGL_FONT_LINES in the "format"
- parameter and to have it create them with polygons, you need to specify
- WGL_FONT_POLYGONS.
-
-